package demo4;
 class A {
    private String name;
      void add () {
         System.out.println(name);
     }
}
class B extends A{
    public void fun () throws RuntimeException{
        add();
        System.out.println("Asd");
    }

}
public class Test {
    public static void main(String[] args) {
        B b = new B();
        b.fun  ();
    }
}
